﻿<UserControl 
    x:Class="TfsWorkbench.ReportViewer.ReportViewerButton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Properties="clr-namespace:TfsWorkbench.ReportViewer.Properties" 
    xmlns:ReportViewer="clr-namespace:TfsWorkbench.ReportViewer" 
    ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Controller.Status}" 
    >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/ApplicationStyles.xaml"/>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/CommandButtonStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Button
        Command="{x:Static ReportViewer:LocalCommandLibrary.ShowReportViewerCommand}"
        CommandTarget="{Binding RelativeSource={RelativeSource Self}}"
        Content="{Binding Source={x:Static Properties:Settings.Default}, Path=PluginName}"
        Style="{DynamicResource ReportButtonStyle}"
        />
</UserControl>
